package cn.jia.hrm;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import sun.awt.SunHints;

@FeignClient(value = "hrm-search",fallbackFactory =CourseFfallbackFactory.class )
@RequestMapping("/es")
public interface CourseESFeign {
    @PostMapping("/search")
    AjaxResult save(@RequestBody CourseDoc courseDoc);

    @PostMapping("/offLine/{idd}")
    AjaxResult delete(@PathVariable (value = "idd") Long idd );
}
